package com.gqj.meter.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.gqj.common.annotation.Excel;
import com.gqj.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 升级记录对象 sys_upgrade_record
 *
 * @author lxq
 * @date lxq-01-09
 */
public class SysUpgradeRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 升级_id */
    private Integer upgradeId;

    /** 升级人 */
    @Excel(name = "升级人")
    private Integer upgradeUserId;

    /** 升级时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "升级时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date upgradeTime;

    /** 升级描述 */
    @Excel(name = "升级描述")
    private String upgradeDesc;

    /** 删除标识 */
    @Excel(name = "删除标识")
    private Integer delflag;

    public void setUpgradeId(Integer upgradeId)
    {
        this.upgradeId = upgradeId;
    }

    public Integer getUpgradeId()
    {
        return upgradeId;
    }
    public void setUpgradeUserId(Integer upgradeUserId)
    {
        this.upgradeUserId = upgradeUserId;
    }

    public Integer getUpgradeUserId()
    {
        return upgradeUserId;
    }
    public void setUpgradeTime(Date upgradeTime)
    {
        this.upgradeTime = upgradeTime;
    }

    public Date getUpgradeTime()
    {
        return upgradeTime;
    }
    public void setUpgradeDesc(String upgradeDesc)
    {
        this.upgradeDesc = upgradeDesc;
    }

    public String getUpgradeDesc()
    {
        return upgradeDesc;
    }
    public void setDelflag(Integer delflag)
    {
        this.delflag = delflag;
    }

    public Integer getDelflag()
    {
        return delflag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("upgradeId", getUpgradeId())
            .append("upgradeUserId", getUpgradeUserId())
            .append("upgradeTime", getUpgradeTime())
            .append("upgradeDesc", getUpgradeDesc())
            .append("remark", getRemark())
            .append("delflag", getDelflag())
            .toString();
    }
}
